cmake_minimum_required(VERSION 3.13.0)

set(CMAKE_BUILD_TYPE DEBUG)
set(LDSCRIPT ${CMAKE_CURRENT_LIST_DIR}/STM32F750N8Hx_FLASH.ld)
include(cortex.cmake)

project(gateway
    LANGUAGES C ASM
)

add_executable(${PROJECT_NAME}.elf)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/cmsis)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/hal)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/driver)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/threadx)
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/app)